package com.ruoyi.work.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作品管理对象 work
 * 
 * @author ruoyi
 * @date 2024-06-06
 */
public class Work extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 学校 */
    @Excel(name = "学校")
    private String school;

    /** 报名组别 */
    @Excel(name = "报名组别")
    private String idgroup;

    /** 作品名称 */
    @Excel(name = "作品名称")
    private String work;

    /** 参赛姓名 */
    @Excel(name = "参赛姓名")
    private String name;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String number;

    /** 实时平均分 */
    @Excel(name = "实时平均分")
    private String avg;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }
    public void setIdgroup(String idgroup) 
    {
        this.idgroup = idgroup;
    }

    public String getIdgroup() 
    {
        return idgroup;
    }
    public void setWork(String work) 
    {
        this.work = work;
    }

    public String getWork() 
    {
        return work;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setAvg(String avg) 
    {
        this.avg = avg;
    }

    public String getAvg() 
    {
        return avg;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("school", getSchool())
            .append("idgroup", getIdgroup())
            .append("work", getWork())
            .append("name", getName())
            .append("number", getNumber())
            .append("avg", getAvg())
            .append("time", getTime())
            .toString();
    }
}
